#include "slider.h"

slider::slider(QWidget *parent) :
    QSlider(parent)
{
    connect(this, SIGNAL(sliderReleased()), this, SLOT(emitter()), Qt::QueuedConnection);
}

void slider::setVal(int val) {
    if (!isSliderDown())
        setValue(val);
}

void slider::emitter() {
    emit seekSignal(value());
}
